﻿using System;
using System.Collections.Generic;
using System.Text;
using Hkwl.WorldExpo.Merchant.Model;

namespace Hkwl.WorldExpo.Merchant.DataAccess
{
    public interface IProjectDao
    {

        #region NxProject 对象

        NxProject GetNxProjectById(int projectId);

        int GetNxProjectByName(string projectName, int merchantId);

        bool InsertNxProject(NxProject project);

        bool UpdateNxProject(NxProject project);

        bool DeleteNxProject(int projectId);

        IList<NxProject> GetNxProjectCollection(int merchantId, int pageIndex, int pageSize, ref int count);

        IList<NxProject> GetNxProjectCollectionByStatus(int merchantId, int status, int pageIndex, int pageSize, ref int count);

        #endregion

        #region NxMms 对象

        bool InsertNxMms(NxMms mms);

        bool UpdateNxMms(NxMms mms);

        bool DeleteNxMms(int mmsId);

        NxMms GetNxMmsById(int mmsId);

        NxMms GetNxMmsByPage(int projectId, int mmsPage);

        IList<NxMms> GetNxMmsCollection(int projectId);

        #endregion
    }
}
